package com.tourism.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tourism.admin.common.Result;
import com.tourism.admin.model.entity.Permission;
import com.tourism.admin.model.entity.RolePermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionService extends IService<Permission> {

    List<RolePermission> getRolePermissionByRoleId(Integer roleId);

    Result<?> deletePermissionsByRoleId(Integer roleId);

    Result<?> insertRoleAndPermission(@Param("roleId") Integer roleId, @Param("permissionId") Integer permissionId);
}
